package com.sn.core.http;

public class CommResult<T> {
    public boolean success;
    public String errmsg;
    public String errcode;
    public long now;
    public T data;
    public String reqNo;
    public String authContent;
    public Integer crpt;

    public CommResult() {
    }

    public CommResult(boolean success, String errorCode, String desc) {
        this.success = success;
        this.errmsg = desc;
        this.errcode = errorCode;
    }

	public Object getData() {
        return data;
    }

	public String getErrcode() {
        return errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public String getReqNo() {
		return reqNo;
	}

    public boolean getSuccess() {
        return success;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setData(T data) {
        this.data = data;
    }

    public void setErrcode(String errcode) {
        this.errcode = errcode;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public void setReqNo(String reqNo) {
		this.reqNo = reqNo;
	}

    public void setSuccess(boolean success) {
        this.success = success;
    }

	public long getNow() {
		return now;
	}

	public void setNow(long now) {
		this.now = now;
	}

	public String getAuthContent() {
		return authContent;
	}

	public void setAuthContent(String authContent) {
		this.authContent = authContent;
	}

	public Integer getCrpt() {
		return crpt;
	}

	public void setCrpt(Integer crpt) {
		this.crpt = crpt;
	}
}
